<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

// 开厅
$router->post('/hall', 'HallController@addHall');

$router->get('/emergency_list', 'HallController@getEmergencyList');

/**
 * 用户模块
 */
// 登录
$router->post('/auth/login', 'AuthController@login');
// 注销
$router->post('/auth/logout', 'AuthController@logout');
//修改密码
$router->put('/account/password', 'AuthController@editPassword');

// 返回服务器时间
$router->get('/timezone', 'AuthController@timezone');


/**
 * 角色模块
 */
//获取角色权限列表
$router->get('/role/auth_list', 'RoleController@roleAuthList');
//获取所有角色列表
$router->get('/role/role_list', 'RoleController@roleList');
//编辑或新增角色权限
$router->put('/role/edit_role_auth', 'RoleController@editRoleAuth');
//删除角色权限
$router->delete('/role/del_role', 'RoleController@delRole');
//获取菜单权限
$router->get('/access/access_list','AccessController@AccessList');

//新增管理员
$router->put('/admin/admin', 'AdminController@addAdmin');
//删除管理员
$router->delete('/admin/admin', 'AdminController@delAdmin');
//编辑管理员
$router->patch('/admin/admin', 'AdminController@editAdmin');
//获取管理员列表
$router->get('/admin/admin_list', 'AdminController@getAdminList');
//踢线管理员
$router->post('/admin/kick_admin', 'AdminController@kickAdminOut');

/**
 * 游戏管理
 */
// 获取游戏合作方
$router->get('/game/partner/list', 'GameController@getPartner');
// 获取厅游戏配置
$router->get('/game/partner/setting', 'GameController@getPartnerSetting');
// 修改厅游戏配置
$router->post('/game/partner/setting', 'GameController@updatePartnerSetting');
// 获取游戏总配置
$router->get('/game/partner_config', 'GameController@getPartnerConfig');
// 修改游戏总配置
$router->post('/game/partner_config', 'GameController@updatePartnerConfig');
// 获取热门API配置
$router->get('/game/hot_setting/list', 'GameController@getHotSettingList');
// 修改热门API配置
$router->post('/game/hot_setting', 'GameController@updateHotSetting');
// 获取游戏标签列表
$router->get('/game/tags', 'GameController@getTagList');
// 增加游戏标签
$router->put('/game/tag', 'GameController@addTag');
// 删除游戏标签
$router->delete('/game/tag', 'GameController@delTag');
// 编辑游戏标签
$router->post('/game/tag', 'GameController@updateTag');
// 获取游戏列表
$router->get('/games', 'GameController@getGameList');
// 编辑游戏的标签
$router->post('/game_tag', 'GameController@updateGameTag');
// 编辑游戏的属性
$router->post('/game', 'GameController@updateGame');
// 获取推荐游戏列表
$router->get('/game/recommend', 'GameController@getGameRecommend');
// 编辑推荐游戏
$router->post('/game/recommend', 'GameController@updateGameRecommend');
// 添加推荐游戏
$router->put('/game/recommend', 'GameController@addGameRecommend');
// 删除推荐游戏
$router->delete('/game/recommend', 'GameController@delGameRecommend');
// 获取API活动
$router->get('/game/active', 'GameController@getGameActive');
// API活动-获取活动类型
$router->get('/game/active/type', 'GameController@getGameActiveType');
// 新增API活动
$router->put('/game/active/add', 'GameController@addApiActive');
// 修改API活动
$router->post('/game/active', 'GameController@updateApiActive');
// 修改API活动状态
$router->patch('/game/active', 'GameController@updateApiActiveStatus');
// 删除API
$router->delete('/game/active', 'GameController@deleteApiActive');
//设置游戏维护维护时间
$router->put('/game/Maintain_time', 'GameController@setMaintainTime');


/**
 * 厅主管理
 */
//厅主名称列表
$router->get('/hall/name_list', 'HallController@hallNameList');
// 获取游戏开关
$router->get('/game_switch', 'GameSwitchController@getHallConfig');
// 获取游戏授权列表
$router->get('/game_switch_list', 'GameSwitchController@getGamelist');
//修改厅主游戏开关
$router->put('/game_switch', 'GameSwitchController@updateHallConfig');
//获取厅主基本数据
$router->get('/hall_info', 'HallBasicController@getHallBasic');
//修改厅主基本数据
$router->put('/hall_info', 'HallBasicController@updateHallBasic');
//修改厅主状态
$router->put('/hallsetting/status', 'HallSettingController@hallUpdateStatus');
//修改厅主密码
$router->put('/hallsetting/password', 'HallSettingController@updateHallPassword');
//获取厅主短信平台
$router->get('/hallsetting/sms', 'HallSettingController@getSmsPlatform');
//修改短信平台
$router->put('/hallsetting/sms', 'HallSettingController@updateSms');
//修改保底费
$router->put('/costsetting/monthly', 'MonthlyController@updateMonthly');
//获取保底费
$router->get('/costsetting/monthly', 'MonthlyController@getMonthly');
//获取厅主列表
$router->get('/hall/list', 'HallController@getList');
//厅主模糊搜索
$router->get('/hall/search', 'HallController@search');
//修改google验证开关
$router->put('/google_switch', 'HallController@googleSwitch');
//修改厅主运营时间
$router->put('/hall/start_time', 'HallController@startTime');
//google验证账号列表
$router->get('/google/list', 'HallSettingController@googleList');
//修改Google验证绑定状态
$router->put('/google/status', 'HallSettingController@updateGoogleStatus');
//厅主列表
$router->get('/domain/list', 'DomainManageController@getList');
//添加域名
$router->post('/domain', 'DomainManageController@addDomain');
//域名停用启用
$router->put('/domain/status', 'DomainManageController@updateStatus');
//域名修改
$router->put('/domain', 'DomainManageController@updateDomain');

/**
 * 注单管理
 */
//获取第三方列表补单
$router->get('/order/partner_list', 'OrderController@getPartnerList');
//获取第三方列表
$router->get('/game/partner_list', 'GameController@getPartnerList');
//电竞注单
$router->get('/order/esports', 'OrderController@getEsportsOrders');
//电子注单
$router->get('/order/egame', 'OrderController@getEgameOrders');
//体育注单
$router->get('/order/sport', 'OrderController@getSportOrders');
//视讯注单
$router->get('/order/live', 'OrderController@getLiveOrders');
//彩票注单
$router->get('/order/lottery', 'OrderController@getLotteryOrders');
//棋牌注单
$router->get('/order/card', 'OrderController@getCardOrders');
//第三方注单补单
$router->post('/order/repair', 'OrderController@repairOrders');
//获取补单记录
$router->get('/order/repair', 'OrderController@getRepairOrders');

/**
 * 支付渠道
 */
// 支付渠道列表
$router->get('/pay/list', 'PayController@getPayChannelList');
// 支付渠道详细
$router->get('/pay/info', 'PayController@getPayChannelInfo');
// 支付通道
$router->get('/pay/channel', 'PayController@getPayChannel');
// 新增支付渠道
$router->post('/pay/info', 'PayController@addPayChannelInfo');
// 修改支付渠道
$router->put('/pay/info', 'PayController@modifyPayChannelInfo');
// 支付渠道的开启和关闭，支付渠道里使用的通道开启和关闭
$router->patch('/pay/info', 'PayController@updatePayChannel');


/**
 * 公告信息
 */
//获取厅主名称
$router->get('/hall/name', 'NoticeController@getAllHall');
//添加公告
$router->post('/notice', 'NoticeController@addInfo');
//获取公告列表
$router->get('/notice', 'NoticeController@getNoticeInfo');
//公告撤回
$router->post('/notice/revert', 'NoticeController@revert');
//搜索框模糊搜索
$router->get('/notice/search', 'NoticeController@likeQuery');
//公告查询
$router->get('/notice/search_list', 'NoticeController@query');
//统计
$router->get('/notice/sum', 'NoticeController@sumStatus');

/**
 * 运营中心
 */
//维护厅主表单
$router->get('/maintain/list', 'GlobalMaintainController@getHallList');
//维护开关
$router->put('/maintain/switch', 'GlobalMaintainController@updateMaintainSwitch');
//设置维护时间
$router->put('/maintain/time', 'GlobalMaintainController@updateMaintainTime');
//转账记录状态筛选列表
$router->get('/transfer/status', 'TransferController@getStatus');
//转账记录-钱包列表
$router->get('/transfer/walletList', 'TransferController@getWalletList');
//转账记录
$router->get('/transfer', 'TransferController@getTransferList');
//转账记录-手动处理
$router->post('/transfer/handle', 'TransferController@handle');
//转账记录-补单检测
$router->post('/transfer/getTransferSupplement', 'TransferController@getTransferSupplement');
//获取转账异常告警订单数
$router->get('/transfer/exceptionNum', 'TransferController@exceptionNum');

/**
 * 财务报表
 */
// 总报表
$router->get('/state/all', 'StateController@getAllStatistics');
// 总报表导出
$router->get('/data/state/all', 'StateController@exportAllStatistics');
// 游戏总类型列表
$router->get('/game/type', 'StateController@getAllGame');
// 游戏报表
$router->get('/state/game', 'StateController@getGameStatistics');
// 出入款汇总
$router->get('/cash/transfer', 'CashController@getCashTransferList');
// 红包小费
$router->get('/cash/tips', 'CashController@getCashTipsList');
// 厅主id列表
$router->get('/cash/hall_list', 'CashController@getHallList');
//分类游戏列表
$router->get('/cash/game_list', 'CashController@getGameList');

/**
 * 导航栏相关
 */

//H5游戏大类列表
$router->get("/menu/list", "HallMenuController@getMenuList");
//H5游戏大类修改排序和显示
$router->put("/menu/list/setting", "HallMenuController@setList");
//H5游戏大类修改排序和显示
$router->get("/menu/list/gameapi", "HallMenuController@getHallApiList");
//H5游戏编辑info数据
$router->get("/menu/list/setapiinfo", "HallMenuController@setApiInfo");
//H5游戏编辑接口
$router->put("/menu/list/setapi", "HallMenuController@setApi");
//新增PC电子大类接口
$router->put("/menu/list/add", "HallMenuController@addMenu");
//删除电子首页大类接口
$router->delete("/menu/list/remove", "HallMenuController@removeMenu");
//新增PC一级导航菜单
$router->put("/menu/list/pcmenu", "HallMenuController@addPcMenu");
//编辑PC一级导航菜单
$router->put("/menu/list/editmenu", "HallMenuController@editPcMenu");


/**
 * 日志相关
 */

//厅主后台操作日志列表
$router->get("/log/admin", "LogController@getAdminLogList");
//会员操作日志列表
$router->get("/log/user", "LogController@getUserLogList");
//代理操作日志列表
$router->get("/log/agent", "LogController@getAgentLogList");
//总后台操作日志列表
$router->get("/log/master", "LogController@getMasterLogList");
//操作类型/模块名称/子模块
$router->get("/log/type", "LogController@getTypeList");
//三级联动
$router->get("/log/select", "LogController@threeLevelLinkList");
//下拉菜单列表
$router->get("/log/select_list", "LogController@searchCriteria");
//总后台操作日志详情
$router->get("/log/master_info", "LogController@getMasterLoginfo");
//厅主操作日志详情
$router->get("/log/admin_info", "LogController@logDetail");